package fun.easycode.jointblock.common.util;

import fun.easycode.jointblock.common.DapengConst;
import org.springframework.web.context.request.RequestAttributes;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import javax.servlet.http.HttpServletRequest;

public class SecurityUtil {

  private SecurityUtil() {
  }

  public static String getCurrentUserId() {
    return "1111";
//    RequestAttributes requestAttributes = RequestContextHolder.currentRequestAttributes();
//    HttpServletRequest request = ((ServletRequestAttributes) requestAttributes).getRequest();
//    return request.getHeader(DapengConst.CURRENT_USER_ID_HEADER);
  }

}
